package com.team.arms.service_management_before.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.team.arms.service_management_before.domain.BeforeMilitary;
import com.team.arms.service_management_before.domain.vo.BeforeMilitaryVo;
import com.team.arms.service_management_before.mapper.BeforeMilitaryMapper;
import com.team.arms.service_management_before.service.BeforeMilitaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *
 */
@Service
public class BeforeMilitaryServiceImpl extends ServiceImpl<BeforeMilitaryMapper, BeforeMilitary>
    implements BeforeMilitaryService{
    @Autowired
    private BeforeMilitaryMapper beforeMilitaryMapper;

    @Override
    public List<BeforeMilitaryVo> selectList() {
        return beforeMilitaryMapper.selectList();
    }

    @Override
    public int deleteByListInformationIds(List<String> id) {
        return beforeMilitaryMapper.deleteBatchIds(id);
    }

    @Override
    public int deleteByListInformationId(String id) {
        return beforeMilitaryMapper.deleteById(id);
    }

    @Override
    public int insertAll(BeforeMilitary beforeMilitary) {
        return beforeMilitaryMapper.insertAll(beforeMilitary);
    }

    @Override
    public BeforeMilitaryVo selectById(String id) {
        return beforeMilitaryMapper.selectBeforeMilitaryId(id);
    }

    @Override
    public List<BeforeMilitaryVo> selectByFiled(String field, String content) {
        return beforeMilitaryMapper.selectByFiled(field, content);
    }


}




